blob: 282fcaf17fed50ac51129dde8fcf105c1b9c11d9 [file] [log] [blame]
Junio C Hamano1a4e8412005-12-27 08:17:231git-fetch-pack(1)
2=================
3
4NAME
5----
Junio C Hamano01078922006-03-10 00:31:476git-fetch-pack - Receive missing objects from another repository
Junio C Hamano1a4e8412005-12-27 08:17:237
8
9SYNOPSIS
10--------
Junio C Hamanobb343172008-03-09 10:39:0911'git-fetch-pack' [--all] [--quiet|-q] [--keep|-k] [--thin] [--include-tag] [--upload-pack=<git-upload-pack>] [--depth=<n>] [--no-progress] [-v] [<host>:]<directory> [<refs>...]
Junio C Hamano1a4e8412005-12-27 08:17:2312
13DESCRIPTION
14-----------
Junio C Hamano35738e82008-01-07 07:55:4615Usually you would want to use linkgit:git-fetch[1] which is a
Junio C Hamanoe58607f2007-01-17 23:27:4516higher level wrapper of this command instead.
17
Junio C Hamano1a4e8412005-12-27 08:17:2318Invokes 'git-upload-pack' on a potentially remote repository,
19and asks it to send objects missing from this repository, to
20update the named heads. The list of commits available locally
21is found out by scanning local $GIT_DIR/refs/ and sent to
22'git-upload-pack' running on the other end.
23
24This command degenerates to download everything to complete the
25asked refs from the remote side when the local side does not
26have a common ancestor commit.
27
28
29OPTIONS
30-------
Junio C Hamanoeb415992008-06-08 22:49:4731--all::
Junio C Hamano4ad294b2007-01-20 02:22:5032Fetch all remote refs.
33
Junio C Hamanoeb415992008-06-08 22:49:4734-q::
35--quiet::
Junio C Hamano1a4e8412005-12-27 08:17:2336Pass '-q' flag to 'git-unpack-objects'; this makes the
37cloning process less verbose.
38
Junio C Hamanoeb415992008-06-08 22:49:4739-k::
40--keep::
Junio C Hamano1a4e8412005-12-27 08:17:2341Do not invoke 'git-unpack-objects' on received data, but
42create a single packfile out of it instead, and store it
Junio C Hamano0d3c8152006-11-08 01:33:4143in the object database. If provided twice then the pack is
44locked against repacking.
Junio C Hamano1a4e8412005-12-27 08:17:2345
Junio C Hamanoeb415992008-06-08 22:49:4746--thin::
Junio C Hamano4ad294b2007-01-20 02:22:5047Spend extra cycles to minimize the number of objects to be sent.
48Use it on slower connection.
49
Junio C Hamanoeb415992008-06-08 22:49:4750--include-tag::
Junio C Hamanobb343172008-03-09 10:39:0951If the remote side supports it, annotated tags objects will
52be downloaded on the same connection as the other objects if
53the object the tag references is downloaded. The caller must
54otherwise determine the tags this option made available.
55
Junio C Hamanoeb415992008-06-08 22:49:4756--upload-pack=<git-upload-pack>::
Junio C Hamano1a4e8412005-12-27 08:17:2357Use this to specify the path to 'git-upload-pack' on the
58remote side, if is not found on your $PATH.
59Installations of sshd ignores the user's environment
60setup scripts for login shells (e.g. .bash_profile) and
61your privately installed git may not be found on the system
62default $PATH. Another workaround suggested is to set
63up your $PATH in ".bashrc", but this flag is for people
64who do not want to pay the overhead for non-interactive
65shells by having a lean .bashrc file (they set most of
66the things up in .bash_profile).
67
Junio C Hamanoeb415992008-06-08 22:49:4768--exec=<git-upload-pack>::
Junio C Hamanofa0d4cf2007-01-25 02:23:5869Same as \--upload-pack=<git-upload-pack>.
70
Junio C Hamanoeb415992008-06-08 22:49:4771--depth=<n>::
Junio C Hamano4ad294b2007-01-20 02:22:5072Limit fetching to ancestor-chains not longer than n.
73
Junio C Hamanoeb415992008-06-08 22:49:4774--no-progress::
Junio C Hamanoaa83a7d2007-03-05 02:37:2975Do not show the progress.
76
Junio C Hamanoeb415992008-06-08 22:49:4777-v::
Junio C Hamano4ad294b2007-01-20 02:22:5078Run verbosely.
79
Junio C Hamano1a4e8412005-12-27 08:17:2380<host>::
81A remote host that houses the repository. When this
82part is specified, 'git-upload-pack' is invoked via
83ssh.
84
85<directory>::
86The repository to sync from.
87
88<refs>...::
89The remote heads to update from. This is relative to
90$GIT_DIR (e.g. "HEAD", "refs/heads/master"). When
91unspecified, update from all heads the remote side has.
92
93
94Author
95------
96Written by Linus Torvalds <torvalds@osdl.org>
97
98Documentation
99--------------
100Documentation by Junio C Hamano.
101
102GIT
103---
Junio C Hamanof7c042d2008-06-06 22:50:53104Part of the linkgit:git[1] suite